package com.biz.primus.model.oms.vo;

import com.biz.primus.model.oms.enums.OrderDeliveryState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.List;


/**
 * @author LGJ
 * @date 2017/11/14
 */
@Data
@ApiModel("订单签收及支付")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class OrderPayAndReceiptVo extends OmsOperationRequest {
    
    @ApiModelProperty("门店编码")
    private String depot;

    @ApiModelProperty("订单编码")
    private String code;

    @ApiModelProperty("自提码")
    private String tcode;

    @ApiModelProperty("是否需要现金入账操作, 配送app收到现金时, 需要将现金交回pos确认入账.当这个值为true时,支付状态会从cod推进到cash")
    private boolean needRecordCash;

    @ApiModelProperty("签收状态")
    private OrderDeliveryState receiveType;

    @ApiModelProperty("支付信息")
    private List<OmsPaymentVo> payments;

    @ApiModelProperty("明细")
    private List<ReceiptItemVo> receiving;

    @ApiModelProperty("调整金额,为正数/负数或0,用于调整最终收款,正数表示应收款增加,负数表示减少")
    private Integer adjustAmount = 0;

}
